# _*_ coding: UTF-8 _*_
# @Time     :2023-11-17 10:15
# @Author   :Yunlian Zeng
# @File     :02_post.py

import requests

datas = {'emp_no':'admin','password':'admin'}   #post请求的正文
url = 'http://localhost/smeoa/login/check_login'
r = requests.post(url, data=datas)    #默认重定向

print(r.text)
# print(r.status_code)    #200
# print(r.reason)         #OK
#
# if r.status_code == 200 and r.reason == 'OK' and '退出' in r.text:
#     print('登陆成功')
# else:
#     print('登陆失败')
r.close()